﻿using System;
using System.Collections.Generic;
using FluentValidation.Attributes;
using Nop.Web.Framework.Mvc;
//using Nop.Web.Validators.News;

namespace Nop.Admin.Models.ShareBuy
{
    //[Validator(typeof(NewsItemValidator))]
    public class ShareBuyItemModel : BaseNopEntityModel
    {
        public ShareBuyItemModel ()
        {
            ShareBuyPictureModels = new List<ShareBuyPictureModel>();
        }
        public string Title { get; set; }

        public string Description { get; set; }

        public DateTime CreatedOnUtc { get; set; }

        public DateTime UpdatedOnUtc { get; set; }

        public int Likes { get; set; }

        //pictures
        public IList<ShareBuyPictureModel> ShareBuyPictureModels { get; set; }
        //comments
        public int Comments { get; set; }

        public class ShareBuyPictureModel : BaseNopEntityModel
        {

            public string PictureUrl { get; set; }

            public int DisplayOrder { get; set; }
        }
    }
}